home *** CD-ROM | disk | FTP | other *** search
/ The Atari Compendium / The Atari Compendium (Toad Computers) (1994).iso / files / prgtools / editors / mutt / me2s_pl7.zoo / mu_edit2 / ed / keymisc.c < prev    next >
Encoding:
C/C++ Source or Header  |  1993-07-05  |  741 b   |  31 lines

  1. static char rcsid[] = "$Id: keymisc.c,v 1.1 1992/09/14 13:02:14 mike Exp $";
  2.  
  3. /* $Log: keymisc.c,v $
  4.  * Revision 1.1  1992/09/14  13:02:14  mike
  5.  * Initial revision
  6.  *
  7.  */
  8.  
  9. /* keymisc.c : 
  10.  * C Durland
  11.  */
  12.  
  13. /* Copyright 1990, 1991 Craig Durland
  14.  *   Distributed under the terms of the GNU General Public License.
  15.  *   Distributed "as is", without warranties of any kind, but comments,
  16.  *     suggestions and bug reports are welcome.
  17.  */
  18.  
  19. #include <dtable.h>
  20. #include <const.h>
  21. #include "ed.h"
  22.  
  23. int Eset_pkey(pkeys,n,kc) PKey *pkeys; int n; KeyCode kc;
  24. {
  25.   if (0<=n && n<PKEYS) { pkeys[n] = kc; return TRUE; }
  26.   return FALSE;
  27. }
  28.  
  29. void Eclear_keytable(kt) dTable *kt;
  30.     { reset_dTable(kt); }        /* unbind all keys */
  31.